<template src="./template.html"></template>

<style src="./style.css" scoped></style>

<script>
    import giftBg from '../assets/images/package-open-bg.png';
    import lookGiftImg from '../assets/images/btn-look.png';
    import navigator from 'utils/navigator';
    import route from 'constants/route';
    import constant from 'constants/constant';

    export default{
        data(){
            return{
                giftBg: giftBg,
                lookGiftImg: lookGiftImg,
                gift: {} //礼包数据
            }
        },
        created(){
            let config = weex.config;
            if(config.gift) this.gift = config.gift;
        },
        methods: {
            lookGift(){
                let options = {
                    url: route.my_money_income_index,
                    title: "我的余额"
                };
                navigator.push(options);
            }
        }
    }
</script>
